﻿using StudentAgeSaveEditor.GameData.Condition;
using StudentAgeSaveEditor.GameData.Effect;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentAgeSaveEditor.GameData
{
    public class BookData : BagData
    {
        public float cur;

        public float max;

        public BookState state;

        public Effector readEffector;

        public Conditioner precondtion;

        public long lastReadTime;

        public float progress => cur / max;

        public BookData()
        {
            type = 3;
        }

        public bool isFinish()
        {
            return cur == max;
        }
    }
}
